import java.util.ArrayList;
public class ArrayOps
{
   /**
      This method adds up the integer values in an array,
      with the integer sum returned at the end of the method.
      @param values, an array of integers, may be positive or negative
      @ return, the sum of the integers
   */
   public static int sumArray(int values[])
   {
      int sum=0;
      // your work here
      // initialize sum
       for(int i=values.length-1;i>=0;i--){
          sum=sum+values[i];
         //array.add(anArray[i]);
      }
      return sum;
      // add all elements to sum
      // return sum
   }
}